package com.example.xwcommon.service.fallback;

import com.example.xwcommon.entity.User;
import com.example.xwcommon.service.UserService;
import com.example.xwcommon.vo.Response;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FallBackUserServiceImpl implements UserService {

    @Override
    public Response<User> reg(String nickName, String loginName, String password, String photo) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<User> login(String loginName, String password) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<Integer> addScore(String loginName, Integer score) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<User> updateState(String loginName, Integer state) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<User> getUserByLoginName(String loginName) {
        return new Response<>(600,"服务不可用",null);
    }


    @Override
    public Response<User> getUserById(Integer userId) {
        return new Response<>(600,"服务不可用",null);
    }
    @Override
    public Response<User> updateAttentionCount(String loginName, Integer attentionCount) {
        return new Response<>(600,"服务不可用",null);
    }

    @Override
    public Response<List<User>> getAllUser() {
        return null;
    }
}
